import { defineStore } from "pinia";
import { ref } from 'vue';

export const useForumBoardStore = defineStore('yunzhou_ForumBoard', () => {
  const forumBoard = ref({})

  const getForumBoard = () => {
    return forumBoard.value
  }

  const setForumBoard = (board) => {
    forumBoard.value = board
  }

  const removeForumBoard = () => {
    forumBoard.value = false
  }

  return { forumBoard, getForumBoard, setForumBoard, removeForumBoard }
});